package com.market.goods.dao.mongo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.market.goods.dao.es.Location;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@ToString
@Data
@Document(collection="marketGoodsOrder")
public class MarketGoodsOrderCollection {

    @Id
    private String id;

    /**
     * 商品id
     */
    private String goodsId;


    /**
     * 商品名称
     */
    private String goodsName;


    /**
     * 商品类型id
     */
    private Long goodsTypeId;

    /**
     * 商品数量
     */
    private Long goodsCount;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    /**
     * 商户id
     */
    private String shopId;

    private String shopName;

    private Integer version;

    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date createdTime;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date updateTime;

}
